\hypertarget{class_texture}{
\section{Texture Class Reference}
\label{class_texture}\index{Texture@{Texture}}
}


Stocke les informations concernant une texture.  




{\ttfamily \#include $<$Texture.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_texture_aa46f4ee11ea80ba9e9b867596efea2d1}{Texture} (const char $\ast$fileName)
\begin{DoxyCompactList}\small\item\em Construit une texture à partir d'une image. \item\end{DoxyCompactList}\item 
void \hyperlink{class_texture_a5a8866cf65c646672b32f8c348c574fa}{Define\_\-bouclage} (void)
\item 
void \hyperlink{class_texture_a090f7cf91dedb40dc0880ec5e36b49ed}{Define\_\-filtrage} (void)
\item 
void \hyperlink{class_texture_a81c7ab6e8c996c6539cf4e1da203312d}{Use} ()
\item 
GLuint \hyperlink{class_texture_a34faf4c8d33029d7edb025ed61b7b201}{Get\_\-index} ()
\item 
\hyperlink{class_texture_aa46f4ee11ea80ba9e9b867596efea2d1}{Texture} (const char $\ast$fileName)
\item 
void \hyperlink{class_texture_a5a8866cf65c646672b32f8c348c574fa}{Define\_\-bouclage} (void)
\item 
void \hyperlink{class_texture_a090f7cf91dedb40dc0880ec5e36b49ed}{Define\_\-filtrage} (void)
\item 
void \hyperlink{class_texture_a81c7ab6e8c996c6539cf4e1da203312d}{Use} ()
\item 
GLuint \hyperlink{class_texture_a34faf4c8d33029d7edb025ed61b7b201}{Get\_\-index} ()
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
SDL\_\-Surface $\ast$ \hyperlink{class_texture_a9355baece59987c5e401a1aedb2528a9}{surface}
\item 
unsigned char $\ast$ \hyperlink{class_texture_a2666de01701e4176aa1c080029a302cd}{image}
\item 
int \hyperlink{class_texture_a06a0246cb31343557c3441c5733349cd}{width}
\item 
int \hyperlink{class_texture_ad37c395c65ff8bde86230908027a6fcd}{height}
\item 
int \hyperlink{class_texture_a29bdec5d5cec4afbc0d3ce4bd03e0dcd}{size}
\item 
GLuint \hyperlink{class_texture_ac7836f9715b16bdedd5cd7e1c8ad2498}{textureIndex}
\item 
int \hyperlink{class_texture_a3836f37a847721f94ebed9449737e4a8}{bitPerPixel}
\item 
int \hyperlink{class_texture_a90eacf645715f9d0722a9b5a40657289}{nbCanaux}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Stocke les informations concernant une texture. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_texture_aa46f4ee11ea80ba9e9b867596efea2d1}{
\index{Texture@{Texture}!Texture@{Texture}}
\index{Texture@{Texture}!Texture@{Texture}}
\subsubsection[{Texture}]{\setlength{\rightskip}{0pt plus 5cm}Texture::Texture (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{fileName}
\end{DoxyParamCaption}
)}}
\label{class_texture_aa46f4ee11ea80ba9e9b867596efea2d1}


Construit une texture à partir d'une image. 


\begin{DoxyParams}{Parameters}
{\em const} & char $\ast$ fileName : nom de l'image à utiliser pour la texture \\
\hline
\end{DoxyParams}
\hypertarget{class_texture_aa46f4ee11ea80ba9e9b867596efea2d1}{
\index{Texture@{Texture}!Texture@{Texture}}
\index{Texture@{Texture}!Texture@{Texture}}
\subsubsection[{Texture}]{\setlength{\rightskip}{0pt plus 5cm}Texture::Texture (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{fileName}
\end{DoxyParamCaption}
)}}
\label{class_texture_aa46f4ee11ea80ba9e9b867596efea2d1}


\subsection{Member Function Documentation}
\hypertarget{class_texture_a5a8866cf65c646672b32f8c348c574fa}{
\index{Texture@{Texture}!Define\_\-bouclage@{Define\_\-bouclage}}
\index{Define\_\-bouclage@{Define\_\-bouclage}!Texture@{Texture}}
\subsubsection[{Define\_\-bouclage}]{\setlength{\rightskip}{0pt plus 5cm}void Texture::Define\_\-bouclage (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a5a8866cf65c646672b32f8c348c574fa}
\hypertarget{class_texture_a5a8866cf65c646672b32f8c348c574fa}{
\index{Texture@{Texture}!Define\_\-bouclage@{Define\_\-bouclage}}
\index{Define\_\-bouclage@{Define\_\-bouclage}!Texture@{Texture}}
\subsubsection[{Define\_\-bouclage}]{\setlength{\rightskip}{0pt plus 5cm}void Texture::Define\_\-bouclage (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a5a8866cf65c646672b32f8c348c574fa}
\hypertarget{class_texture_a090f7cf91dedb40dc0880ec5e36b49ed}{
\index{Texture@{Texture}!Define\_\-filtrage@{Define\_\-filtrage}}
\index{Define\_\-filtrage@{Define\_\-filtrage}!Texture@{Texture}}
\subsubsection[{Define\_\-filtrage}]{\setlength{\rightskip}{0pt plus 5cm}void Texture::Define\_\-filtrage (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a090f7cf91dedb40dc0880ec5e36b49ed}
\hypertarget{class_texture_a090f7cf91dedb40dc0880ec5e36b49ed}{
\index{Texture@{Texture}!Define\_\-filtrage@{Define\_\-filtrage}}
\index{Define\_\-filtrage@{Define\_\-filtrage}!Texture@{Texture}}
\subsubsection[{Define\_\-filtrage}]{\setlength{\rightskip}{0pt plus 5cm}void Texture::Define\_\-filtrage (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a090f7cf91dedb40dc0880ec5e36b49ed}
\hypertarget{class_texture_a34faf4c8d33029d7edb025ed61b7b201}{
\index{Texture@{Texture}!Get\_\-index@{Get\_\-index}}
\index{Get\_\-index@{Get\_\-index}!Texture@{Texture}}
\subsubsection[{Get\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}GLuint Texture::Get\_\-index (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a34faf4c8d33029d7edb025ed61b7b201}
\hypertarget{class_texture_a34faf4c8d33029d7edb025ed61b7b201}{
\index{Texture@{Texture}!Get\_\-index@{Get\_\-index}}
\index{Get\_\-index@{Get\_\-index}!Texture@{Texture}}
\subsubsection[{Get\_\-index}]{\setlength{\rightskip}{0pt plus 5cm}GLuint Texture::Get\_\-index (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a34faf4c8d33029d7edb025ed61b7b201}
\hypertarget{class_texture_a81c7ab6e8c996c6539cf4e1da203312d}{
\index{Texture@{Texture}!Use@{Use}}
\index{Use@{Use}!Texture@{Texture}}
\subsubsection[{Use}]{\setlength{\rightskip}{0pt plus 5cm}void Texture::Use (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a81c7ab6e8c996c6539cf4e1da203312d}
\hypertarget{class_texture_a81c7ab6e8c996c6539cf4e1da203312d}{
\index{Texture@{Texture}!Use@{Use}}
\index{Use@{Use}!Texture@{Texture}}
\subsubsection[{Use}]{\setlength{\rightskip}{0pt plus 5cm}void Texture::Use (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_texture_a81c7ab6e8c996c6539cf4e1da203312d}


\subsection{Member Data Documentation}
\hypertarget{class_texture_a3836f37a847721f94ebed9449737e4a8}{
\index{Texture@{Texture}!bitPerPixel@{bitPerPixel}}
\index{bitPerPixel@{bitPerPixel}!Texture@{Texture}}
\subsubsection[{bitPerPixel}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Texture::bitPerPixel}}}
\label{class_texture_a3836f37a847721f94ebed9449737e4a8}
Nombre de bit utilisé pour représenter un pixel \hypertarget{class_texture_ad37c395c65ff8bde86230908027a6fcd}{
\index{Texture@{Texture}!height@{height}}
\index{height@{height}!Texture@{Texture}}
\subsubsection[{height}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Texture::height}}}
\label{class_texture_ad37c395c65ff8bde86230908027a6fcd}
Largeur de l'image \hypertarget{class_texture_a2666de01701e4176aa1c080029a302cd}{
\index{Texture@{Texture}!image@{image}}
\index{image@{image}!Texture@{Texture}}
\subsubsection[{image}]{\setlength{\rightskip}{0pt plus 5cm}unsigned char $\ast$ {\bf Texture::image}}}
\label{class_texture_a2666de01701e4176aa1c080029a302cd}
Tableau d'unsigned char contenant les informations de l'image \hypertarget{class_texture_a90eacf645715f9d0722a9b5a40657289}{
\index{Texture@{Texture}!nbCanaux@{nbCanaux}}
\index{nbCanaux@{nbCanaux}!Texture@{Texture}}
\subsubsection[{nbCanaux}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Texture::nbCanaux}}}
\label{class_texture_a90eacf645715f9d0722a9b5a40657289}
Nombre de canaux utilisés pour représenter un pixel (un canal = 8 bits), exemple RGB = 3 cannaux, RGBA = 4 cannaux \hypertarget{class_texture_a29bdec5d5cec4afbc0d3ce4bd03e0dcd}{
\index{Texture@{Texture}!size@{size}}
\index{size@{size}!Texture@{Texture}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Texture::size}}}
\label{class_texture_a29bdec5d5cec4afbc0d3ce4bd03e0dcd}
Taille totale de l'image (width$\ast$height) \hypertarget{class_texture_a9355baece59987c5e401a1aedb2528a9}{
\index{Texture@{Texture}!surface@{surface}}
\index{surface@{surface}!Texture@{Texture}}
\subsubsection[{surface}]{\setlength{\rightskip}{0pt plus 5cm}SDL\_\-Surface$\ast$ {\bf Texture::surface}}}
\label{class_texture_a9355baece59987c5e401a1aedb2528a9}
\hypertarget{class_texture_ac7836f9715b16bdedd5cd7e1c8ad2498}{
\index{Texture@{Texture}!textureIndex@{textureIndex}}
\index{textureIndex@{textureIndex}!Texture@{Texture}}
\subsubsection[{textureIndex}]{\setlength{\rightskip}{0pt plus 5cm}GLuint {\bf Texture::textureIndex}}}
\label{class_texture_ac7836f9715b16bdedd5cd7e1c8ad2498}
Indice retourné par la méthode glGenTextures permettant son identification dans le buffer openGL \hypertarget{class_texture_a06a0246cb31343557c3441c5733349cd}{
\index{Texture@{Texture}!width@{width}}
\index{width@{width}!Texture@{Texture}}
\subsubsection[{width}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Texture::width}}}
\label{class_texture_a06a0246cb31343557c3441c5733349cd}
Longueur de l'image 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
sources/displayable/\hyperlink{displayable_2_texture_8h}{Texture.h}\item 
sources/old/\hyperlink{old_2_texture_8h}{Texture.h}\item 
sources/displayable/\hyperlink{displayable_2_texture_8cpp}{Texture.cpp}\item 
sources/old/\hyperlink{old_2_texture_8cpp}{Texture.cpp}\end{DoxyCompactItemize}
